package com.uenpay.im.configuration;


import com.uenpay.im.IMApplication;

public class ShareData {
	private volatile static ShareData instance;
	public static boolean IS_TAB_PAGE = false;
	public static IMApplication.PAGE CUR_PAGE;
	public static String CUR_CHAT_ID;

	public static ShareData getInstance() {
		if (instance == null) {
			synchronized (ShareData.class) {
				if (instance == null) {
					instance = new ShareData();
				}
			}
		}
		return instance;
	}

	public void setChatId(String chat_id) {
		CUR_CHAT_ID = chat_id;
	}

	public String getChatId() {
		return CUR_CHAT_ID;
	}

	public void setCurPage(IMApplication.PAGE page) {
		CUR_PAGE = page;
	}

	public IMApplication.PAGE getCurPage() {
		return CUR_PAGE;
	}
}
